package backend.service.impl;

import backend.dao.MapDataDao;
import backend.dao.TotalCasesDao;
import backend.service.GetTotalCasesService;
import entities.EveryDay;
import entities.MapData;
import entities.TotalCases;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class GetTotalCasesServiceImpl implements GetTotalCasesService {
    @Resource
    private TotalCasesDao totalCasesDao;
    @Resource
    private MapDataDao mapDataDao;

    @Override
    public TotalCases getTotalCases() {
        return totalCasesDao.getTotalCases();
    }

    @Override
    public EveryDay[] getEveryDay() {
        return totalCasesDao.getEveryDay();
    }

    @Override
    public MapData[] getMapData() {
        return mapDataDao.getMapData();
    }

    @Override
    public MapData[] getDetailMapData(String proName) {
        return mapDataDao.getDetailMapData(proName);
    }
}
